home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 March / CHIP Mart 1997.iso / SurfCam / SURFCAM.Z / BAN4.M3 < prev    next >
Encoding:
Text File  |  1996-04-01  |  3.8 KB  |  132 lines

  1. name Bandit 4
  2.  
  3. % 00
  4. N >4
  5. G >2
  6. O >4
  7. X ->3.>4
  8. Y ->3.>4
  9. Z ->3.>4
  10. I ->3.>4
  11. J ->3.>4
  12. K ->3.>4
  13. Q ->3.>4
  14. R ->3.>4
  15. F >4.1
  16. D >2
  17. T >2
  18. M >2
  19. S >4
  20.  
  21. ModalLetters X Y Z F                  # List of letters that are modal    
  22.  
  23. ModalGs 73 74 76 80 81 82 83 84 85    # List of g codes that are modal    
  24.  
  25. Sequence#s N 0 1 1                    # Char, freq, incr & start          
  26. First#? N                             # Y or N  'Output 1st sequence no.  
  27. Last#? N                              # Y or N  'Output last sequence no. 
  28.  
  29. HCode X                               # X or X U  'Horizontal char.       
  30. VCode Y                               # Y or Y V  'Vertical char.         
  31. Dcode Z                               # Depth char.                       
  32. FeedCode F                            # Feed rate char.                   
  33.  
  34. Comment ;                             # Begin End comment char.           
  35.  
  36. Spindle 3 4 5                         # Cw, ccw & stop m codes            
  37. Coolant 8 9 7                         # On, Off & Mist m codes            
  38. DComp 41 42 40                        # Left, Right & Cancel m codes      
  39. LComp 43 49                           # On & Off codes                    
  40.  
  41. Feed G1                             # Linear move                       
  42. Rapid G0                            # Rapid positioning word            
  43. Cw G2                               # Circular move clockwise           
  44. Ccw G3                              # Circular move counter clockwise   
  45. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  46. CtrCode I J                           # I J or R or I J K L               
  47. Helical? N
  48.  
  49. Spaces? Y                             # Y or N  'Spaces between words     
  50. Incremental? N                        # Y or N  'Inc or abs output        
  51. CtrIncremental? N                     # Y or N  'Inc or abs I & J         
  52. ByQuadrants? N                        # Y or N  'Break arcs at quadrants  
  53.  
  54. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  55.  
  56. WorkDefault 1                         # Work offset register default      
  57.  
  58.  
  59. Drill                                 # Drilling canned/manual cycle      
  60. G81 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  61. end cancel
  62.  
  63. Peck                                  # Pecking canned/manual cycle       
  64. G83 X[H] Y[V] Z[D] Q[VBite] R[Vclear] F[FRate]
  65. end cancel
  66.  
  67. Tap                                   # Tapping canned/manual cycle       
  68. G84 X[H] Y[V] Z[D] R[Vclear] F[Frate] Q[VBite]
  69. end cancel
  70.  
  71. LTap                                  # Left handed tapping cycle         
  72. G74 X[H] Y[V] Z[D] R[Vclear] F[FRate] Q[VBite]
  73. end cancel
  74.  
  75. Ream                                  # Reaming canned/manual cycle       
  76. G85 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  77. end cancel
  78.  
  79. Bore                                  # Boring canned/manual cycle        
  80. G86 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  81. end cancel
  82.  
  83. Back                                  # Back boring canned/manual cycle   
  84. G87 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  85. end cancel
  86.  
  87. Cancel                                # Cancel a canned/manual cycle      
  88. G80
  89. end
  90.  
  91. StartCode                             # Start of the program              
  92. %0
  93. G90
  94. End
  95.  
  96. 1stToolChange                         # First tool change                 
  97. O0
  98. G0 Z0
  99. O[Tool]
  100. M[Direct]
  101. M[Cool]
  102. G45 O[Work]
  103. G0 X[H] Y[V]
  104. End
  105.  
  106. Infeed                                # Enable cutter comp                
  107. G[Side] X[H] Y[V] F[FRate]
  108. end
  109.  
  110. Outfeed                               # Disable cutter comp               
  111. G1 G40 X[H] Y[V]
  112. end
  113.  
  114. ToolChange                            # Secondary tool changes            
  115. O0
  116. G0 Z0
  117. X0 Y0
  118. M9
  119. M5
  120. O[Tool]
  121. M[Direct]
  122. M[Cool]
  123. G45 O[Work]
  124. G0 X[H] Y[V]
  125. End
  126.  
  127. EndCode                               # End of the program                
  128. O0
  129. G0 Z0
  130. M02
  131. %0
  132. End